#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <VolumeUnit.h>

USING_MOCKCPP_NS USING_TESTNGPP_NS

FIXTURE(VolumeUnit_convertToBaseVolumeUnit)
{
    TEST("BSP.convertToBaseVolumeUnit(5)== 15")
    {
        ASSERT_EQ(BSP.convertToBaseUnit(5),5*3);
    }

    TEST("OZ.convertToBaseVolumeUnit(1)==6")
    {
        ASSERT_EQ(OZ.convertToBaseUnit(1),6);
    }

};

FIXTURE(VolumeUnit_Less)
{
    TEST("BSP<OZ")
    {
        ASSERT_TRUE(OZ>BSP);
    }

};

FIXTURE(VolumeUnit_Trace)
{
    TEST("5TSP / 1 BSP = 2 TSP")
    {
        ASSERT_EQ(1,BSP.convertFromBaseUnit(5));
    }

};

